package com.easy.mapper;

import com.easy.bean.PurchaseRequest;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PurchaseRequestDao {
    int add(@Param("param") PurchaseRequest request);
    int del(@Param("id") Integer id);
    int edit(@Param("param") PurchaseRequest request);
    PurchaseRequest one(@Param("id") Integer id);
    List<PurchaseRequest> all(@Param("material_id") Integer materialId, @Param("requester_id") Integer requesterId);
    int pageCount(@Param("param") PurchaseRequest request);
    List<PurchaseRequest> page(@Param("page") Page page, @Param("param") PurchaseRequest request);
}